-- GENERATED SPELL FOR [Beryl Sorcerer] --


function spell0_25316(pUnit, Event) --@Blink,Self--
pUnit:FullCastSpellOnTarget(50648,pUnit)
pUnit:RegisterEvent('Sorts_25316', 2500, 1)
end

function spell1_25316(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25316', 7000, 1)
end

function Sorts_25316(pUnit, Event)
local choix_sorts_25316 = math.random(0, 1)
if choix_sorts_25316 == 0 then
pUnit:RegisterEvent('spell0_25316', 1, 1)
end
if choix_sorts_25316 == 1 then
pUnit:RegisterEvent('spell1_25316', 1, 1)
end
end

function mob25316_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25316', math.random(1500, 3000), 1)
end

function mob25316_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25316_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25316_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25316, 1, 'mob25316_Action')
RegisterUnitEvent(25316, 2, 'mob25316_Leave')
RegisterUnitEvent(25316, 3, 'mob25316_Kill')
RegisterUnitEvent(25316, 4, 'mob25316_Die')
